﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ImageResizeForAndroid {
    /// <summary>
    /// SavedWindow.xaml の相互作用ロジック
    /// </summary>
    public partial class SavedWindow : Window {

        string destPath;

        public SavedWindow() {
            InitializeComponent();
        }

        public SavedWindow(string destPath) {
            InitializeComponent();
            this.destPath = destPath;
        }

        private void Window_Loaded(object sender, RoutedEventArgs e) {

        }

        private void yesButton_Click(object sender, RoutedEventArgs e) {
            System.Diagnostics.Process.Start(destPath);
            this.Close();
        }

        private void noButton_Click(object sender, RoutedEventArgs e) {
            this.Close();
        }
    }
}
